<%
# 
# Copyright (C) 2006  Warren Konkel and Bounty Source, Inc.
# 
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
# 
%>
<%=render(:partial => 'header')%>

<table class="codetable">
  <thead>
	  <tr>
	    <th>#</th>
	    <th>line</th>
	    <th>revision</th>
	    <th>author</th>
	    <th>age</th>
	  </tr>
	</thead>

  <tbody>
	  <% Svn::Client::Context.new.blame(@blame_path, nil, @rev) { |line_no, revision, author, date, line| %>
      <tr <%=cycle('', 'class="nonalternate"')%>>
	      <th><span><a name="<%=line_no+1%>" "href="#<%=line_no+1%>"><%=line_no+1%></a></span></th>
	      <td class="blame"><%=hh(line)%></td>
	      <td class="nowrap" style="text-align: center"><a href="<%=$bs_svn_browser[:url_base]%>/!revision/<%=revision%>"><%=revision%></a></td>
	      <td class="nowrap"><%=format_user(author)%></td>
	      <td class="nowrap"><%=time_ago_in_words(date)%></td>
	    </tr>
	  <% } %>
	</tbody>
</table>

<%=render(:partial => 'footer')%>
